package com.wavehi.service.impl;

import com.wavehi.mapper.PersonMapper;
import com.wavehi.pojo.Person;
import com.wavehi.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author WaveHi
 * @Date 24/10/2021 下午 1:23
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
@Service
public class PersonServiceImpl implements PersonService {

    @Autowired
    private PersonMapper personMapper;

    @Override
    public Boolean updatePerson(Person person) {
        return personMapper.update(person);
    }

    @Override
    public Person getPerson(Long id) {
        return personMapper.selectById(id);
    }
}
